package com.glela.common.verify.custom;

/**
 * @author liujie
 *
 * 用户验证demo
 */
public class UserVerify
{

	/**
	 * 验证用户名
	 * @param obj
	 * @return
	 */
	public static boolean verifyName(Object obj) {
		boolean result = false;
		if(obj instanceof String) {
			String name = obj.toString();
			int length = name.length();
			if(!"admin".equals(name) && length < 100) {
				result = true;
			}
		}
		return result;
	}
}
